#!/bin/sh
rm -f dist/webhook
rm -f dist/build-temp

go mod tidy
go build -ldflags "-w -s" -o dist/build-temp go-tool/webhook/main
upx -9 -o dist/webhook dist/build-temp

rm -f dist/build-temp
